$(document).ready(function () {
    $("#logisticsName").click(function () {
        $("#logisticsName").cate({
            title: "物流公司",
            liveSearch: false,
            url: G_Path.path + "/logistics/mng/name",
            param: {"type": "1"},
            "id": "logisticsId",
            "name": "logisticsName"
        });
    });


});
function sendLogistics() {
    $.post(G_Path.path + "/trade/purchase/send/logistics", $("#logisticsDialogForm").serialize(), function (text) {
        var data = $.parseJSON(text);
        if (data.success) {
            window.close();
        } else {
            showDialogMessage(data.msg);
        }
    });
}
